﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:local="clr-namespace:Nav"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary
            Source="/Nav;Component/Themes/Common.xaml" />
    </ResourceDictionary.MergedDictionaries>
    
    <Style
        TargetType="local:NavigationMenu">
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="local:NavigationMenu">

                    <Grid
                        VerticalAlignment="Stretch"
                        HorizontalAlignment="Stretch">

                        <Rectangle
                            Fill="{StaticResource MenuBackground}"
                            RadiusY="31.5"
                            RadiusX="31.5"
                            HorizontalAlignment="Stretch"
                            StrokeThickness="6"
                            Margin="0"
                            Stroke="{StaticResource MenuBorder}"
                            VerticalAlignment="Stretch" />

                        <StackPanel
                            Margin="15,0,15,25"
                            VerticalAlignment="Bottom"
                            Orientation="Horizontal"
                            HorizontalAlignment="Center">

                            <Button
                                x:Name="prevButton"
                                Height="20"
                                Width="28"
                                Margin="3,3,3,3"
                                Content="&lt;&lt;"
                                HorizontalAlignment="left"
                                VerticalAlignment="Top" />

                            <Button
                                x:Name="nextButton"
                                Height="20"
                                Width="31"
                                Margin="3,3,3,3"
                                Content="&gt;&gt;"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center" />

                            <Button
                                x:Name="startButton"
                                Height="20"
                                Width="45"
                                Margin="3,3,3,3"
                                Content="Start"
                                HorizontalAlignment="Right"
                                VerticalAlignment="Top"
                                RenderTransformOrigin="0.5,0.5">
                            </Button>

                        </StackPanel>

                        <Canvas
                            x:Name="itemsCanvas"
                            Background="{StaticResource MenuBackground}"
                            Margin="15,20,15,60">

                        </Canvas>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>